<!DOCTYPE html>
<?php
set_include_path(
'C:\pleiades432b\wks\hlib' . PATH_SEPARATOR . get_include_path()
);
require_once 'Google/Calendar2.php';
Calendar::initSession('http://localhost:9010/ctest');
/*
if (!empty($_REQUEST['code'])) {
	Calendar::createCalendarClient($_REQUEST['code']);
} else {
	if (!Calendar::AccessTokenExists()) {
		Calendar::getAccessTokenFromGoogleSite('http://localhost:9010/ctest');
	} else {
		Calendar::createCalendarClient($_SESSION[Calendar::KEY_ACCESS_TOKEN], Calendar::TYPE_ACCESS_TOKEN);
	}
}
*/
$calendar = new Calendar();
$list = $calendar->getCalendarList();

if (!isset($_SESSION)){
	session_start();
}

?>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<pre>
<?php print_r($list);?>
</pre>
</body>
</html>